package com.findu.activity;

import com.example.findu.R;
import com.example.findu.R.layout;
import com.findu.control.Public_title_dynamic;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.TextView;

/**
 * 
* @ClassName: Relatives_information_details_Changeinfo 
* @Description: TODO(修改用户信息) 
* @author A18ccms a18ccms_gmail_com 
* @date 2015-11-2 下午4:28:55 
*
 */
public class Relatives_information_details_Changeinfo extends Activity implements OnClickListener{
	//声明标题
	private Public_title_dynamic public_title_dynamic;
	private View public_title_View;
	private TextView puTextView_left,pubTextView_right;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_relatives_information_details__changeinfo);
		
		//将标题部分进行初始化
		init_Public_title();
	}

	/**
	 * 初始化标题行内容
	 */
	private void init_Public_title() {
		// TODO Auto-generated method stub
		//找到title布局文件
		public_title_View = findViewById(R.id.activity_relatives_information_detals_changeinfo_include);
		public_title_dynamic  = new Public_title_dynamic(public_title_View);
		
		//对title进行调整
		public_title_dynamic.setTextLeft("取消");
		public_title_dynamic.setLeftImageVisible_Gone();
		public_title_dynamic.setTextView("修改信息");
		public_title_dynamic.setRighttImageVisiable(false);
		public_title_dynamic.setTextRight("保存");
		
		//初始化标题中的组件
		puTextView_left = (TextView) public_title_View.findViewById(R.id.public_title_dynamic_textViewLeft);
		pubTextView_right=(TextView) public_title_View.findViewById(R.id.public_title_dynamic_textViewright);
		
		puTextView_left.setOnClickListener(this);
		pubTextView_right.setOnClickListener(this);
	}

	@Override
	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		switch (arg0.getId()) {
		case R.id.public_title_dynamic_textViewLeft:
			finish();
			break;
		case R.id.public_title_dynamic_textViewright:
			finish();
			break;
		default:
			break;
		}
	}

	

}
